package com.edu.service.impl;

import com.edu.service.UserService;

import java.util.Date;

/**
 * @Author:mx
 * @Date:2025/11/10-15:16:02
 */
public class UserServiceProxy implements UserService {

    private UserService userService;

    public UserServiceProxy(UserService us){
        this.userService = us;
    }

    @Override
    public void addUser() {
        System.out.println("addUser开始执行与:"+new Date());
        userService.addUser();
    }

    @Override
    public void deleteUser() {
        System.out.println("deleteUser开始执行与:"+new Date());
        userService.deleteUser();
    }

    @Override
    public void updateUser() {
        System.out.println("updateUser:"+new Date());
        userService.updateUser();
    }

    @Override
    public void selectUser() {
        System.out.println("selectUser:"+new Date());
        userService.selectUser();
    }
}
